package com.chatim.nonamechatim.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chatim.nonamechatim.mapper.UserFriendMapper;
import com.chatim.nonamechatim.pojo.User;
import com.chatim.nonamechatim.pojo.UserFriend;
import com.chatim.nonamechatim.service.UserFriendService;
import com.chatim.nonamechatim.vo.UserListVo;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserFriendServiceImpl extends ServiceImpl<UserFriendMapper, UserFriend> implements UserFriendService {

    @Resource
    UserFriendMapper userFriendMapper;

    @Override
    public List<UserListVo> getFriendList(Long id) {
        return userFriendMapper.getFriendList(id);
    }
}
